from django.conf.urls import url,include
from wenjuan import views

urlpatterns = [
    url(r'^api1/', views.api1, name='api1'),  # 脑出血患者调查手册数据录入数据库api
    url(r'^api2/', views.api2, name='api2'),  # 健康人群调查手册数据录入数据库api
    url(r'^api4/', views.api4, name='api4'),  # 健康人群调查问卷(体检中心)数据录入数据库api
    url(r'^api5/', views.api5, name='api5'),  # 脑出血患者调查记录(医院)数据录入数据库api
    url(r'^api6/', views.api6, name='api6'),  # 随访患者调查记录数据录入数据库api
    url(r'^api7/', views.api7, name='api7'),  # 检查用户名和密码，判断用户是否有权限参加问卷调查
    

    url(r'^DelWenjuan1/', views.DelWenjuan1, name='DelWenjuan1'),  # 删除脑出血患者调查手册
    url(r'^DelWenjuan2/', views.DelWenjuan2, name='DelWenjuan2'),  # 删除健康人群调查手册
    url(r'^DelWenjuan4/', views.DelWenjuan4, name='DelWenjuan4'),  # 删除健康人群调查问卷(体检中心)
    url(r'^DelWenjuan5/', views.DelWenjuan5,name='DelWenjuan5'), #删除患者调查记录(医院)
    url(r'^DelWenjuan6/', views.DelWenjuan6, name='DelWenjuan6'),  # 删除随访患者调查记录
    url(r'^DelWenjuan7/', views.DelWenjuan7, name='DelWenjuan7'),  # 删除入户筛查表调查记录
    url(r'^DelWenjuan8/', views.DelWenjuan8, name='DelWenjuan8'), 
    url(r'^DelWenjuan9/', views.DelWenjuan9, name='DelWenjuan9'), 
    url(r'^DelWenjuan10/', views.DelWenjuan10, name='DelWenjuan10'), 

    #数据导出
    url(r'^ExportWenjuan/(?P<user>\w+)/(?P<no>\w+)/$', views.ExportWenjuan, name='ExportWenjuan'),  # 脑出血导出，需要传入数据
    #各省问卷记录首页
    url(r'^wenjuan_index/(.+)/$', views.wenjuan_index, name='wenjuan_index'), 
    #各省各类问卷记录展示页面
    url(r'^wenjuan/(?P<province>\w+)/(?P<no>\w+)/$', views.wenjuan, name='wenjuan'), 
    #各省各类问卷处理
    url(r'^wenjuan_solve/(?P<province>\w+)/(?P<no>\w+)/$', views.wenjuan_solve, name='wenjuan_solve'), 
    #湖南省专用处理
    url(r'^wenjuan_hunan_solve/(.+)/$', views.wenjuan_hunan_solve, name='wenjuan_hunan_solve'), 
    #街道乡镇级调查单位基本信息采集表记录
    url(r'^wenjuan_hunan_solve/no11/', views.wenjuan_hunan_solve_jd, name='wenjuan_hunan_solve_jd')
]
